class TwitterController < ApplicationController
	def index
	end
	
	def search
		@text = params[:search]
		authenticate = Twitter::HTTPAuth.new("dipukherudkar","sweety")
		user = Twitter::Base.new(authenticate)
		@tweets = Twitter::Search.new(" ").contains(@text).fetch.results
	end
end
